/*
 * Created on 2005-12-14
 */
package cn.com.pxto.web.action;


import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import cn.com.pxto.service.DicManager;


/**
 * 
 * @author Gauss Cheung
 * 
 */
public class SideBar extends Action {
	private DicManager dicManager = null;
	
	public void setDicManager(DicManager dicManager) {
		this.dicManager = dicManager;
	}

	public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
		List funcs =dicManager.getDicsByType("visit_func");
		request.setAttribute("funcs",funcs);
		return mapping.findForward("success");
	}
}
